package com.simon.discharging;

import com.simon.battery.dao.BatteryRepository;
import com.simon.batterychecker.R;

import android.app.Activity;
import android.os.Bundle;
import android.widget.GridView;

public class DisChargingActivity extends Activity {

	private BatteryRepository repos;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		repos = new BatteryRepository(this);
		
		setContentView(R.layout.discharging);
		GridView gridview = (GridView) findViewById(R.id.discharging);

		gridview.setAdapter(new DataAdapter(this, repos.getAllDisCharging()));

	}

}
